
local S = mobs.intllib

-- Iron Monster

mobs:register_mob("mobs_monster:iron_monster", {
	type = "monster",
	passive = false,
	attack_type = "dogfight",
	pathfinding = true,
	reach = 2,
	damage = 14,
	hp_min = 80,
	hp_max = 100,
	armor = 5,
	collisionbox = {-0.4, -1.3, -0.4, 0.4, 0.6, 0.4},
	visual_size = {x=1.25, y=1.25},
	visual = "mesh",
	mesh = "mobs_stone_monster.b3d",
	textures = {
		{"mobs_iron_monster.png"},
	},
	blood_texture = "default_iron_lump.png",
	makes_footstep_sound = true,
	sounds = {
		random = "mobs_stonemonster",
		damage = "mobs_ironmonster_damage",
		death = "mobs_ironmonster_death",
	},
	walk_velocity = 1,
	run_velocity = 1.5,
	jump_height = 1,
	stepheight = 1.1,
	floats = 0,
	view_range = 50,
	
	drops = {
		{name = "default:iron_lump", chance = 1, min = 4, max = 9},
		{name = "default:iron_lump", chance = 1, min = 3, max = 5},
		{name = "default:iron_lump", chance = 1, min = 5, max = 7},
		{name = "default:steel_ingot", chance = 1, min = 2, max = 5},
	},
	water_damage = 0,
	lava_damage = 0,
	light_damage = 0,
	animation = {
		speed_normal = 15,
		speed_run = 15,
		stand_start = 0,
		stand_end = 14,
		walk_start = 15,
		walk_end = 38,
		run_start = 40,
		run_end = 63,
		punch_start = 40,
		punch_end = 63,
	},
	
	immune_to = {
		{"default:pick_mese", 1},
	},
})

if not mobs.custom_spawn_monster then
mobs:spawn({
	name = "mobs_monster:iron_monster",
	nodes = {"default:stone", "default:stone_with_iron", "default:stone_with_coal"},
	max_light = 0,
	chance = 10000,
	max_height = -1000,
})
end


mobs:register_egg("mobs_monster:iron_monster", S("Iron Monster"), "default_iron_lump.png", 1)


mobs:alias_mob("mobs:iron_monster", "mobs_monster:iron_monster")

